package com.smart.community.user.dto;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户个人资料更新DTO
 * 
 * @author Wu.Liang
 * @version 1.0.0
 * @since 2025-01-30
 */
@Data
@Schema(description = "用户个人资料更新DTO")
public class UserProfileUpdateDTO {
    
    @Schema(description = "真实姓名")
    @NotBlank(message = "真实姓名不能为空")
    private String realName;
    
    @Schema(description = "昵称")
    private String nickname;
    
    @Schema(description = "手机号码")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    
    @Schema(description = "邮箱地址")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @Schema(description = "头像URL")
    private String avatar;
}
